// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
/** 项目入口，主要配置全局vue */

// 引入vue以及相关插件
import Vue from 'vue'
import router from './router'

// 需要引入 npm i element-ui -S
import { Button, Select, Pagination } from 'element-ui'
// import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import Store from '.'
import App from './App.vue'

Vue.config.productionTip = false

// Vue.use(ElementUi)
Vue.use(Button)
Vue.use(Select)
Vue.use(Pagination)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router,
  components: { App },
  // store:Store,
  template: '<App/>'
})

// 默认进入主页
router.push({path: '/home'})
